#{extends 'main.html' /}
#{set title:'Entities' /}

<html>
<body>
	<ul>
		#{list items:entities, as:'entity'}
		${entity.name} <form action = "@{Users.inviteUser()}">
<input type="hidden" name="entityId" value=${entity.id}>
<input type = "submit" value = "Invite Unregistered User!!">
</form>
<form action = "@{Users.inviteToEntity()}">
<input type="hidden" name="entityId" value=${entity.id}>
<input type = "submit" value = "Invite Registered User!">
</form>
		<li>#{list items:entity.members, as:'member'}
		${member.fName}</a>#{/list}</li> #{/list}
	</ul>

</body>

<form action="@{Users.requestTopicView()}" method="post">
<input type="hidden" id="EntityId" value=${entity.id}>
<input type="submit"  value="request a new Topic" >
</form>


</html>